a = input()
p = 0
for i in range(0, -len(a)):
    print(a[i])
